Package-level declarations

Types

Link copied to clipboard
@Serializable
data class TSBlePeripherals(val permissionGranted: Boolean, val connectedBLEs: List<TSDevice>)
Link copied to clipboard
@Serializable
data class TSBleScan(val permissionGranted: Boolean, val scanResults: List<TSDevice>)
Link copied to clipboard
@Serializable
data class TSCollection(val collectionId: String = UUID.randomUUID().toString(), val observationTime: Date = now(), val sensorTag: String, val timedOut: Boolean = false, val observation: TSObservation)

A single observation collected by the Trust Signals SDK.

Link copied to clipboard
data class TSConfiguration(val collectionUrl: String, val collectionTimeoutMs: Long = DEFAULT_COLLECTION_TIMEOUT_MS, val sensorTag: String)
Link copied to clipboard
data class TSCredentials(val accountId: String, val accessToken: String, val serviceId: String, val unitId: String, val interactionId: String, val verificationStatus: TSVerificationStatus)

Credentials and identifiers used for a collect-and-upload operation.

Link copied to clipboard
@Serializable
data class TSDevice(val name: String?, val observationTime: Date, val address: String)
Link copied to clipboard
@Serializable
data class TSDeviceInfoSignals(val model: String?, val manufacturer: String?, val device: String?, val screenResolution: String?, val screenDensityDpi: Int?, val androidVersion: String?, val sdkInt: Int?, val uptimeMs: Long?, val language: String?, val region: String?, val debuggerAttached: Boolean?, val developerModeEnabled: Boolean?, val appVersion: String?, val installerPackage: String?, val batteryLevel: Int?, val batteryStatus: String?)
Link copied to clipboard
@Serializable
data class TSLocation(val lat: Double, val lon: Double, val accuracy: Float? = null, val speed: Float? = null, val observationTime: Date)
Link copied to clipboard
@Serializable
data class TSNetworkState(val networkType: String, val vpnActive: Boolean, val proxyHost: String?)
Link copied to clipboard
@Serializable
data class TSObservation(val deviceInfoSignals: TSDeviceInfoSignals, val wifiScan: TSWifiScan?, val bleScan: TSBleScan?, val location: TSLocation?, val wifiNetwork: TSWifiNetwork?, val blePeripherals: TSBlePeripherals?, val nearbyDevices: List<TSDevice>?, val ip: String?, val timezone: String, val networkState: TSNetworkState?, val activeCall: Boolean?)
Link copied to clipboard

Outcome of the host app's own verification of the current interaction, sent to the server alongside the collected signals.

Link copied to clipboard
@Serializable
data class TSWifiNetwork(val name: String?, val bssid: String? = null, val rssi: Int? = null, val observationTime: Date, val connectedDevices: List<TSDevice>? = null)
Link copied to clipboard
@Serializable
data class TSWifiScan(val permissionGranted: Boolean, val scanResults: List<TSDevice>)